]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
timeLimitsManager: Remove a redundant fallback value
authorPhilip Withnall <pwithnall@gnome.org>
Wed, 5 Mar 2025 11:32:48 +0000 (11:32 +0000)
committerMarge Bot <marge-bot@gnome.org>
Wed, 5 Mar 2025 12:06:07 +0000 (12:06 +0000)
This code was originally copied from `lightbox.js`, where the fallback
is potentially useful because the duration is provided as an argument.
The `timeLimitsManager` uses a constant as the duration, though, so the
fallback is just confusing.

Spotted in https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3655#note_2369352

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3655>

js/misc/timeLimitsManager.js

index 776076464dd87df32d43cd018658141306005d94..29417539836aac0e6432d11e1b0f407da7e98661 100644 (file)
@@ -957,7 +957,7 @@ class TimeLimitsDispatcher extends GObject.Object {
                 Main.layoutManager.uiGroup.ease_property(
                     '@effects.desaturate.factor', GRAYSCALE_SATURATION,
                     {
-                        duration: GRAYSCALE_FADE_TIME_SECONDS * 1000 || 0,
+                        duration: GRAYSCALE_FADE_TIME_SECONDS * 1000,
                         mode: Clutter.AnimationMode.EASE_OUT_QUAD,
                     });
             } else {